<?php
namespace Home\Model;
use Think\Model\RelationModel;;
class OorderModel extends RelationModel {

  protected $_map=array(
	 "rename"=>"od_contacter",
	 //"retel"=>"od_tel",
	 //"remail"=>"od_email",
	 "payselect"=>"payway_id",
	 "sendselect"=>"sendway_id"
	);
  //自动验证
    protected $_validate = array(
         // array('classl_id','require','必须！',self::EXISTS_VALIDATE ),
         // array('classl_name','require','一级分类名称必须！',self::EXISTS_VALIDATE ),
         // array('classl_order','require','排序必须！',self::EXISTS_VALIDATE ),
         // array('classl_img','require','大分类图像必须！',self::EXISTS_VALIDATE ),
         // array('classl_status','require','开启状态必须！',self::EXISTS_VALIDATE ),
         
    );
    // 自动填充设置
    protected $_auto = array(
         array('od_createtime','time',self:: MODEL_INSERT,'function'),
         array('od_updatetime','time',self:: MODEL_INSERT,'function'),
         array('od_updatetime','time',self:: MODEL_UPDATE,'function'),
         array('od_status',1,self::MODEL_INSERT),


         
    );




}
?>